import Mock from "mockjs";
import jwt from "jsonwebtoken";
let token ="Bearer" + jwt.sign({foo:"bar"},"liujing");
Mock.mock("/api/list",{
    code:200,
    "list":[{
        "id":"@id",
        "num|+1":1,
        "name":"@word(2,5)"
    }]
})

Mock.mock("/api/login",{
    code:200,
    token:token,
    message:"登陆成功"
})